<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="Variables,com.vk.api.lib.Variables,session,user_id,getVariable,getVariables,putVariable" name="keywords">
<title>com.vk.api.lib.Variables</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Variables - Документация apivk';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">apivk.googlecode.com</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/vk/api/lib/Variables.html&amp;com/vk/api/lib/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Variables</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Variables"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.vk.api.lib</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Variables</td>
</tr>
</table>
<p></p>
  Хранение данных на серверах Вконтакте.
  <p></p>
  <table class="innertable">
  <tr>
   <th>Номера</th><th>Постоянные</th>
   <th>api_id</th><th>user_id</th><th>session</th>
   <th>Зарезерв.</th>
   <th>Описание</th>
  </tr>
  <tr>
   <td>0</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>Да</td>
   <td>unixtime</td>
  </tr>
  <tr>
   <td>1-14</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>Да</td>
   <td>-</td>
  </tr>
  <tr>
   <td>16</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>Да</td>
   <td>highscores count</td>
  </tr>
  <tr>
   <td>17</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>Да</td>
   <td>max_scores</td>
  </tr>
  <tr>
   <td>18-31</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>-</td>
   <td>application variables</td>
  </tr>
  <tr>
   <td>30-(32+max_scores-1)</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>Да</td>
   <td>highscore records</td>
  </tr>
  <tr>
   <td>(32+max_scores-1)-1023</td><td>Да</td>
   <td>Да</td><td>-</td><td>-</td>
   <td>-</td>
   <td>application variables</td>
  </tr>
      <tr>
   <td>1024-1039</td><td>Да</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>Да</td>
   <td>-</td>
  </tr>
  <tr>
   <td>1040-1279</td><td>Да</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user private vars</td>
  </tr>
  <tr>
   <td>1280-1295</td><td>Да</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>Да</td>
   <td>-</td>
  </tr>
  <tr>
   <td>1296-1503</td><td>Да</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user public vars (other users: read only)</td>
  </tr>
  <tr>
   <td>1503-1535</td><td>Да</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user public vars (other users: read-write)</td>
  </tr>
  <tr>
   <td>1535-1567</td><td>-</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user public vars (other users: read-write)</td>
  </tr>
  <tr>
   <td>1568-1791</td><td>-</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user public vars (other users: read only)</td>
  </tr>
  <tr>
   <td>1792-2047</td><td>-</td>
   <td>Да</td><td>Да</td><td>-</td>
   <td>-</td>
   <td>user private vars</td>
  </tr>
      <tr>
   <td>2048</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>Да</td>
   <td>current session's id (read only)</td>
  </tr>
  <tr>
   <td>2049</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>Да</td>
   <td>current session's name</td>
  </tr>
  <tr>
   <td>2050-2063</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>Да</td>
   <td>-</td>
  </tr>
  <tr>
   <td>2064</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>Да</td>
   <td>messages count</td>
  </tr>
  <tr>
   <td>2065-2079</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>-</td>
   <td>session vars</td>
  </tr>
  <tr>
   <td>2080-2207</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>Да</td>
   <td>message query</td>
  </tr>
  <tr>
   <td>2208-3071</td><td>-</td>
   <td>Да</td><td>-</td><td>Да</td>
   <td>-</td>
   <td>session vars</td>
  </tr>
      <tr>
   <td>3072</td><td>-</td>
   <td>Да</td><td>Да</td><td>Да</td>
   <td>Да</td>
   <td>read messages count</td>
  </tr>
  <tr>
   <td>3073-4095</td><td>-</td>
   <td>Да</td><td>Да</td><td>Да</td>
   <td>Да</td>
   <td>instance vars</td>
  </tr>
  </table>
  <p>В постоянных переменных может храниться до 255 байтов.
  Во временных переменнах &#x2014; до 4095 байтов</p>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#session">session</a> : String = "0"<div class="summaryTableDescription">[static]
   Номер сессии.</div>
</td><td class="summaryTableOwnerCol">Variables</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#user_id">user_id</a> : String = ""<div class="summaryTableDescription">[static]
   id пользователя.</div>
</td><td class="summaryTableOwnerCol">Variables</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getVariable()">getVariable</a>(key:uint):URLRequest</div>
<div class="summaryTableDescription">[static]
   Получить значение переменной.</div>
</td><td class="summaryTableOwnerCol">Variables</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getVariables()">getVariables</a>(key:uint, count:uint):URLRequest</div>
<div class="summaryTableDescription">[static]
   Получить значение нескольких переменных.</div>
</td><td class="summaryTableOwnerCol">Variables</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#putVariable()">putVariable</a>(key:uint, value:String):URLRequest</div>
<div class="summaryTableDescription">[static]
   Записать в переменную.</div>
</td><td class="summaryTableOwnerCol">Variables</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="session"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">session</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public static var session:String = "0"</code><p>
   Номер сессии.
   </p><p>Определяет c какой группой переменных работаем.</p>
   </div>
<a name="user_id"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">user_id</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static var user_id:String = ""</code><p>
   id пользователя.
   </p><p>Используется в зависимости от номера переменной (см. Таблицу)</p>
   <p>Чтобы очистить переменную нужно задать ее значение равной
   пустой строке <code>""</code>. В этом случае параметр user_id
   передаваться не будет, но значение будет считаться равным id
   текущего пользователя </p>
   </div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="getVariable()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getVariable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getVariable(key:uint):URLRequest</code><p>
   Получить значение переменной.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">key</span>:uint</code> &mdash; номер переменной.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>URLRequest</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://vkontakte.ru/pages.php?o=-1&p=getVariable" target="mm_external">http://vkontakte.ru/pages.php?o=-1&amp;p=getVariable</a>
</div>
</div>
<a name="getVariables()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getVariables</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getVariables(key:uint, count:uint):URLRequest</code><p>
   Получить значение нескольких переменных.
   
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">key</span>:uint</code> &mdash; номер первой переменной.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:uint</code> &mdash; Значение от 1 до 32, количество переменных.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>URLRequest</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://vkontakte.ru/pages.php?o=-1&p=getVariables" target="mm_external">http://vkontakte.ru/pages.php?o=-1&amp;p=getVariables</a>
</div>
</div>
<a name="putVariable()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">putVariable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function putVariable(key:uint, value:String):URLRequest</code><p>
   Записать в переменную.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">key</span>:uint</code> &mdash; номер переменной.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:String</code> &mdash; значение переменной.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>URLRequest</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://vkontakte.ru/pages.php?o=-1&p=putVariable" target="mm_external">http://vkontakte.ru/pages.php?o=-1&amp;p=putVariable</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">v. 1.1.0</center>
</div>
</body>
</html>
<!--v. 1.1.0-->
